package cn.zf233.jwtshiro.config.shiro.sms;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * Created by zf233 on 2021/7/12
 */
public class VCodeToken implements AuthenticationToken {

    private final String phone;
    private final String code;

    public VCodeToken(String phone, String code) {
        this.phone = phone;
        this.code = code;
    }

    @Override
    public Object getPrincipal() {
        return this.phone;
    }

    @Override
    public Object getCredentials() {
        return this.code;
    }
}
